1.2.8.2. alpha.unix.Chroot (C)
Check improper use of chroot.

Examples:

void f();

void test() {
  chroot("/usr/local");
  f(); // warn: no call of chdir("/") immediately after chroot
}